import { Promise } from 'es6-promise'
import { convertParams, convertRequestURL, localInfo, getQueryString, Storage } from '../utils/utils'
import  store  from '../vuex/store'
import  { showLoading, hideLoading, setMsgTip, setUserId, setCity, setNeedLogin }  from '../vuex/actions'


// errorCodeHandle
const errorCodeHandle = (resp,reject,nullTip)=>{
    if(resp.code){
        if(resp.code == 204){
            setMsgTip(store,{
                text:resp.msg,
                type:'error'
            })
            reject(new Error(resp.msg))
            return true
        }
        else if(resp.code == 401 || resp.code == 23003 ){
            setMsgTip(store,{
                text:resp.msg,
                type:'error'
            })
            setNeedLogin(store, true)
            reject(new Error(resp.msg))
            return true
        }
        setMsgTip(store, {
            text:resp.msg,
            type:'warn'
        })
        reject(new Error(resp.msg))
        return true
    }
    if(nullTip){
        if(!resp.data){
            setMsgTip(store, {
                text:resp.msg,
                type:'warn'
            })
            reject(new Error(resp.msg))
            return
        }
    }
    return false
}

// errorRequestHandle
const errorRequestHandle = (text,reject)=>{
    setMsgTip(store,{
        text:text,
        type:'error'
    })
    reject(new Error(text));
}
/*仪表盘*/
const dashBoardApi = {
    /*渠道注册情况*/
    channel(){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("dashboardDataList"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求渠道注册情况失败',reject)
                }
            })
        })
    },
    /*仪表盘title数据*/
    title(){
        return new Promise((resolve,reject)=>{
            $.ajax({
                type:"post",
                url: convertRequestURL("realTimeData"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求title失败',reject)
                }
            })
        })
    }
}
const custApi = {
    custCustManageList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("cust/custManageList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求客户管理列表失败',reject)
                }
            })
        })
    },
    custCustIdentityDetail(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("cust/CustIdentityDetail"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求客户管理身份详情失败',reject)
                }
            })
        })
    },
    custGetRepayAmountRecordList(params){
         return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("cust/getRepayAmountRecordList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求客户管理还款详情失败',reject)
                }
            })
        })
    }
}
//财务统计
const financialApi = {
    financialAjax(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/tfinancedataList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求财务统计失败',reject)
                }
            })
        })
    },
    downTfinanceDataListAjax(params){
         return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/downTfinanceDataList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求财务统计下载接口',reject)
                }
            })
        })
    },
    getTfinanceAmountAjax(){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/getTfinanceAmount"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求总额接口',reject)
                }
            })
        })
    }
}
//应收统计
const receiptApi={
        receiptAjax(params){
            return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/lendDueDataList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求应收统计接口失败',reject)
                }
            })
        })
        },
        downLendDueDataList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/downLendDueDataList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求应收款统计下载接口',reject)
                }
            })
        })
    },
     lendLendFailureList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/lendFailureList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求财务放款失败接口',reject)
                }
            })
        })
    },
    lendLendAgain(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/lendAgain"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求财务重新放款接口',reject)
                }
            })
        })
    },
     
    lendCancelLend(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/cancelLend"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求财务取消放款接口',reject)
                }
            })
        })
    },
}
// 渠道管理
const channelApi={
    channelroviderPList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                 headers: {
                        channel: "abc"
                    },
                url: convertRequestURL("channel/channelroviderPList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求渠道商信息列表失败',reject)
                }
            });
        })
    },
    //老用户
    channelGetOldUserOverReportList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("channel/getOldUserOverReportList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求老用户逾期数据报表失败',reject)
                }
            });
        })
    },
    //新用户
    channelGetNewUserOverReportList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("channel/getNewUserOverReportList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求新用户逾期数据报表失败',reject)
                }
            });
        })
    },
    //渠道报表统计
    channelGetChannelReportList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("channel/getChannelReportList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求渠道报表接口失败',reject)
                }
            });
        })
    },
    //全部
    channelGetAllUserOverReportList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("channel/getAllUserOverReportList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求全部逾期数据报表失败',reject)
                }
            });
        })
    },
    channelManageajax(params){
         return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("channel/channelManage"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求新增渠道商失败',reject)
                }
            });
        })
    },
    channelProviderDOList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("channel/channelProviderDOList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求渠道商列表失败',reject)
                }
            });
        })
    },
    channelNumberDOList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("channel/channelNumberDOList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求渠道商相应渠道号失败',reject)
                }
            });
        })
    },
    addChannelCode(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("channel/channelCodeManage"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求新增渠道号失败',reject)
                }
            });
        })
    }
}
//渠道实时查询
const channelRealtime={
    channelRealtimeDataList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("channel/channelRealtimeDataList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求渠道实时查询失败',reject)
                }
            });
        })
    },
    channelNumberDOList(params){
         return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("channel/channelNumberDOList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求实时查询渠道号失败',reject)
                }
            });
        })
    }
}
const loginApi = {
    checkInitialPassword(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("checkInitialPassword"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求修改密码失败',reject)
                }
            });
        })
    },
    userLogin(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("login"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    setMsgTip(store, {
                        text:'登录成功',
                        type:'success'
                    })
                    resolve(data)
                },
                error(){
                    errorRequestHandle('登录失败',reject)
                }
            });
        })
    },
    loginOut(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loginOut"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求登出失败',reject)
                }
            });
        })
    },
    resetPwd(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("resetPwd"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    setMsgTip(store, {
                        text:'修改密码成功',
                        type:'success'
                    })
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求修改密码失败',reject)
                }
            });
        })
    }
}

const authApi = { 
    zmScoreCheck(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("auth/zmScoreCheck"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求芝麻分核实失败',reject)
                }
            });
        })
    },
    getContact(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("auth/getContact"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求获取认证通讯录失败',reject)
                }
            });
        })
    },
    blackListRiskUpload(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("auth/blackListRiskUpload"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求上报黑名单失败',reject)
                }
            });
        })
    },
    allStatisInfo(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("auth/allStatisInfo"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求全部审核统计失败',reject)
                }
            });
        })
    },
    authDataToExcel(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("auth/authDataToExcel"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求放款记录下载列表失败',reject)
                }
            });
        })
    },
    waithChecklistNew(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("auth/waithChecklistNew"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取待审核记录失败',reject)
                }
            });
        })
    },
    historyCheckListNew(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("auth/historyCheckListNew"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取历史审核记录失败',reject)
                }
            });
        })
    },
    pass(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("auth/pass"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取审核通过失败',reject)
                }
            });
        })
    },
    detailNew(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("auth/detailNew"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取审核记录详情失败',reject)
                }
            });
        })
    },
    reject(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("auth/reject"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求审核拒绝失败',reject)
                }
            });
        })
    },
}

const autoAllotApi = {
    info(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("config/autoAllot/info"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求自动分配信息失败',reject)
                }
            });
        })
    },
    updateAllotTime(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("config/autoAllot/updateAllotTime"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求自动分配时段失败',reject)
                }
            });
        })
    },
    updateAllotBlockNum(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("config/autoAllot/updateAllotBlockNum"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求配置阻塞阈值失败',reject)
                }
            })
        })
    },
    updateSingleAllotNum(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("config/autoAllot/updateSingleAllotNum"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求配置单次分配量失败',reject)
                }
            });
        })
    }
}
const loanApi = {
    unbindIcloud(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/unbindIcloud"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取解绑icloud失败',reject)
                }
            });
        })
    },
    sendGetContactMessage(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/sendGetContactMessage"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求发送通讯录短信失败',reject)
                }
            });
        })
    },
    reUploadContact(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/reUploadContact"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求再次获取通讯录失败',reject)
                }
            });
        })
    },
    getContact(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/getContact"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求获取通讯录失败',reject)
                }
            });
        })
    },
    delayBindIcloud(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/delayCheckBind"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取延迟确认绑定iCloud失败',reject)
                }
            });
        })
    },
    remarkZfbNo(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/remarkZfbNo"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取登记线下放款账号失败',reject)
                }
            });
        })
    },
    waitChecklistNew(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/waitChecklistNew"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取待审核记录失败',reject)
                }
            });
        })
    },
    addRemarks(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/addRemarks"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求添加备注失败',reject)
                }
            });
        })
    },
    useICouldAccount(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/useICouldAccount"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取icloud账号失败',reject)
                }
            });
        })
    },

    historyCheckListNew(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/historyCheckListNew"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取历史审核记录失败',reject)
                }
            });
        })
    },
    detailNew(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/detailNew"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取审核记录详情失败',reject)
                }
            });
        })
    },
    reject(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/reject"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求审核拒绝失败',reject)
                }
            });
        })
    },
    userReject(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/giveup"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求用户放弃申请失败',reject)
                }
            });
        })
    },
    pass(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("loan/pass"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求借款审核失败',reject)
                }
            });
        })
    },
}

const financeApi = {
    getContact(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/getContact"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求获取通讯录失败',reject)
                }
            });
        })
    },
    lendUpdateRepayTime(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/updateRepayTime"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取应还金额失败',reject)
                }
            });
        })
    },
    waitChecklist(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/waitChecklist1"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取待放款记录失败',reject)
                }
            });
        })
    },
    downLoadLendRecordDataList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/downLoadLendRecordDataList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求下载放款记录列表失败',reject)
                }
            });
        })
    },
    downLoadRepayRecordDataList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/downLoadRepayRecordDataList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求下载还款记录列表失败',reject)
                }
            });
        })
    },
    downLoadExtendRecordDataList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/downLoadExtendRecordDataList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求下载展期记录列表失败',reject)
                }
            });
        })
    },
    extendTime(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/extendTime"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求确定展期失败',reject)
                }
            });
        })
    },
    confirmExtendAmount(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/confirmExtendAmount"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求确定展期金额失败',reject)
                }
            });
        })
    },
    historyCheckList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/historyCheckList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取历史放款记录失败',reject)
                }
            });
        })
    },
    lendRecordDataList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/lendRecordDataList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取历史放款记录失败',reject)
                }
            });
        })
    },
    repayRecordDataList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/repayRecordDataList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取历史还款记录失败',reject)
                }
            });
        })
    },
    extendDataList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/extendDataList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取展期记录失败',reject)
                }
            });
        })
    },
    detail(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/detail"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取放款详情失败',reject)
                }
            });
        })
    },
    pass(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/pass"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求确认放款失败',reject)
                }
            });
        })
    },
    reject(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/rejectNew"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求拒绝放款失败',reject)
                }
            });
        })
    },
    modAmount(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/modAmount"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求修改放款金额失败',reject)
                }
            });
        })
    },
    underLinePay(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/underLinePay"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求线下放款失败',reject)
                }
            });
        })
    },
    repay(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/repay"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求全部结清失败',reject)
                }
            });
        })
    },
    addRepayPartRemarks(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("lend/addRepayPartRemarks"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求部分结清失败',reject)
                }
            });
        })
    },
}

const systemApi = {
    showGPSRisk(){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/showGPSRisk"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求GPS风控配置失败',reject)
                }
            });
        })
    },
    systemGetAutoCheckSwitch(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/getAutoCheckSwitch"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求是否自动审核失败',reject)
                }
            });
        })
    },
    systemAddNoticeInfo(params){
         return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/addNoticeInfo"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求新增通知信息失败',reject)
                }
            });
        })
    },
    systemSetLendAmountLimit(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/setLendAmountLimit"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求当日放款额限制失败',reject)
                }
            });
        })
    },
    systemNoticeInfoList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/noticeInfoList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求通知信息列表失败',reject)
                }
            });
        })
    },
    systemUserMenuList(){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/userMenuList"),
                //data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求权限登录失败',reject)
                }
            });
        })
    },
    systemDeleteRoles(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/deleteRoles"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求删除角色条目失败',reject)
                }
            });
        })
    },
    systemSaveRoles(params){
         return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/saveRoles"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求保存添加角色菜单列表失败',reject)
                }
            });
        })
    },
    systemUpdMenuList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/updMenuList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求修改角色权限菜单列表失败',reject)
                }
            });
        })
    },
    systemMenuList(){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/menuList"),
                //data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求添加角色菜单列表失败',reject)
                }
            });
        })
    }, 
    saveGPSRisk(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/saveGPSRisk"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求保存GPS风控配置失败',reject)
                }
            });
        })
    },
    showLoanLendType(){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/showLoanLendType"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求放款方式失败',reject)
                }
            });
        })
    },
    saveLoanLendType(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/saveLoanLendType"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求保存放款方式失败',reject)
                }
            });
        })
    },
    getAppConfig(){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"get",
                url: convertRequestURL("config/getConfig"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return
                    document.title=resp.data.appName+"管理平台";
                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求app配置选项失败',reject)
                }
            });
        })
    },
    setAppConfig(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("config/setConfig"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                console.log(data)
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求设置app配置选项失败',reject)
                }
            });
        })
    },
    getConfigInfo(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"get",
                url: convertRequestURL("config/getConfigInfo"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求风控配置选项失败',reject)
                }
            });
        })
    },
    showExtendTimes(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/showExtendTimes"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求展期次数失败',reject)
                }
            });
        })
    },
    showOverdueCharge(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/showOverdueCharge"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求逾期罚息失败',reject)
                }
            });
        })
    },
    showIcloudMsgShow(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/showIcloudMsgShow"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求icloud信息显示配置失败',reject)
                }
            });
        })
    },
    saveIcloudMsgShow(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/saveIcloudMsgShow"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求保存icloud信息显示配置失败',reject)
                }
            });
        })
    },
    saveExtendTimes(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/saveExtendTimes"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求配置展期次数失败',reject)
                }
            });
        })
    },
    saveOverdueCharge(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/saveOverdueCharge"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求保存逾期罚息失败',reject)
                }
            });
        })
    },
    getRiskConfig(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"get",
                url: convertRequestURL("config/getRiskConfig"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求当前风控配置失败',reject)
                }
            });
        })
    },
    setRiskConfig(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("config/setRiskConfig"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求设置风控配置失败',reject)
                }
            });
        })
    },
    operatorList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/operatorList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求管理员列表失败',reject)
                }
            });
        })
    },
    resetOperatorPwd(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/resetOperatorPwd"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    setMsgTip(store, {
                        text:'重置密码成功',
                        type:'success'
                    })
                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求重置操作员密码失败',reject)
                }
            });
        })
    },
    lockOperator(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/lockOperator"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求锁定操作员失败',reject)
                }
            });
        })
    },
    unLockOperator(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/unLockOperator"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求解锁操作员失败',reject)
                }
            });
        })
    },
    systemDeleteOperator(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/deleteOperator"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求删除管理员条目表失败',reject)
                }
            });
        })
    },
    roleList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/roleList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求权限组列表失败',reject)
                }
            });
        })
    },
    allRoles(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/allRoles"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求权限组列表失败',reject)
                }
            });
        })
    },
    saveOperator(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/saveOperator"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('增加修改管理员失败',reject)
                }
            });
        })
    },
    allCycles(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/allCycles"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取支持的借款周期失败',reject)
                }
            });
        })
    },
    allModels(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/allModels"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取支持的设备型号失败',reject)
                }
            });
        })
    },
    deviceCycleList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/deviceCycleList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取利息和额度方案失败',reject)
                }
            });
        })
    },
    saveCycles(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/saveCycles"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取保存所有的周期失败',reject)
                }
            });
        })
    },
    saveModels(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/saveModels"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取保存所有的设备失败',reject)
                }
            });
        })
    },
    saveDeviceCycle(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/saveDeviceCycle"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取保存利息和额度方案失败',reject)
                }
            });
        })
    },
    delDeviceCycle(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("system/delDeviceCycle"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取删除利息和额度方案失败',reject)
                }
            });
        })
    },
}

const operateApi = {
    operatorListToExcel(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("operation/operatorListToExcel"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求员工列表表格下载失败',reject)
                }
            });
        })
    },
    operatorList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("operation/operatorList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取运营员工列表失败',reject)
                }
            });
        })
    },
    roleList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("operation/roleList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取运营权限组列表失败',reject)
                }
            });
        })
    },
    startAllot(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("operation/startAllot"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求开始分配认证申请失败',reject)
                }
            });
        })
    },
    pauseAllot(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("operation/pauseAllot"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求暂停分配认证申请失败',reject)
                }
            });
        })
    },
    allotOperatorList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("allot/operatorList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求筛选人员列表失败',reject)
                }
            });
        })
    },
    authStatisInfo(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("allot/authStatisInfo"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求认证分配记录失败',reject)
                }
            });
        })
    },
    loanStatisInfo(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("allot/loanStatisInfo"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求借款分配记录失败',reject)
                }
            });
        })
    },
    authList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("allot/authList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求认证分配记录失败',reject)
                }
            });
        })
    },
    loanList(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("allot/loanList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求借款分配记录失败',reject)
                }
            });
        })
    },
    allotAuth(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("allot/allotAuth"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求分配认证专属客服失败',reject)
                }
            });
        })
    },
    allotLoan(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("allot/allotLoan"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求分配借款专属客服失败',reject)
                }
            });
        })
    },
    changeAuth(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("allot/changeAuth"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求修改认证专属客服失败',reject)
                }
            });
        })
    },
    changeLoan(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("allot/changeLoan"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求修改借款专属客服失败',reject)
                }
            });
        })
    },
}
const icloudApi = {
    list(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("iCould/list"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求icloud列表失败',reject)
                }
            });
        })
    },
    uploadExcel(params){
        let formData = new FormData();
        formData.append("file",params)
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("iCould/uploadExcel"),
                data:formData,
                processData : false,
                contentType : false,
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    setMsgTip(store,{
                        text:data.data,
                        type:'success'
                    })
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求上传表格失败',reject)
                }
            });
        })
    },
    lockAccount(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("iCould/lockAccount"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求icloud锁定失败',reject)
                }
            });
        })
    },
    unlockAccount(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("iCould/unlockAccount"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求icloud解锁失败',reject)
                }
            });
        })
    },
    detail(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("iCould/detail"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求icloud详情失败',reject)
                }
            });
        })
    },
    resetPwd(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("iCould/resetPwd"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求icloud修改密码失败',reject)
                }
            });
        })
    },
}
const youxinApi = {
    userData(){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("log/userDetailed"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求用户数据失败！', reject)
                }
            });
        })
    },
    userTrend(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("log/userTrend"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求用户趋势失败！', reject)
                }
            });
        })
    },
    loanData(){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("log/loanDetailed"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求贷款点击数据失败！', reject)
                }
            });
        })
    },
    loanTrend(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("log/loanTrend"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求贷款点击趋势失败！', reject)
                }
            });
        })
    },
    eventData(){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("log/eventDetailed"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求事件数据失败！', reject)
                }
            });
        })
    },
    eventTrend(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("log/eventTrend"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求事件趋势失败！', reject)
                }
            });
        })
    },
    detailTrend(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("log/detailTrend"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求事件趋势失败！', reject)
                }
            });
        })
    },
    tabData(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                data:params,
                url: convertRequestURL("log/detailed"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求事件详细数据失败！', reject)
                }
            });
        })
    },
}

const repayApi = {
    getContact(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/getContact"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求获取通讯录失败',reject)
                }
            });
        })
    },
    repayGetRepayOperatorDataList(params){
         return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/getRepayOperatorDataList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求贷后催回接口失败',reject)
                }
            });
        })
    },
    repayOperatorList(){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/operatorList"),
                //data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return
                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求催收员接口失败',reject)
                }
            });
        })
    },
    addFollowNew(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/addFollowNew"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求新增跟进记录接口失败',reject)
                }
            });
        })
    },
    repayAddContactFollow(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/addContactFollow"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求案件催收催记接口失败',reject)
                }
            });
        })
    },
    resetBad(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/resetBad"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求异常催收重置失败',reject)
                }
            });
        })
    },
    followStatusList(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/followStatusList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求状态列表失败！', reject)
                }
            });
        })
    },
    addFollowStatus(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/addFollowStatus"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求新增跟进状态失败！', reject)
                }
            });
        })
    },
    allWaitFollowList(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/allWaitFollowList1"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求所有贷后记录失败！', reject)
                }
            });
        })
    },
    allWaitFollowListNew(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/allWaitFollowListnew"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求新增贷后记录失败！', reject)
                }
            });
        })
    },
    allWaitFollowListAfter(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/allWaitFollowListAfter"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求复借贷后记录失败！', reject)
                }
            });
        })
    },
    operatorList(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/operatorList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求贷后人员列表失败！', reject)
                }
            });
        })
    },
    allotTask(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/allotTask"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求分配任务失败！', reject)
                }
            });
        })
    },
    detailNew(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/detailNew"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取案件详情失败',reject)
                }
            });
        })
    },
    addFollowLable(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/addFollowLable"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求添贷后标签失败', reject)
                }
            });
        })
    },
    repayBillDetail(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/billDetail"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求每一条数据详情接口失败', reject)
                }
            });
        })
    },
    repayUndoTask(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/undoTask"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求撤销分单接口失败', reject)
                }
            });
        })
    },
    repayAllotTask(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/allotTask"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求保存分单接口失败', reject)
                }
            });
        })
    },
    getFollowRecordList(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/getFollowRecordList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求贷后跟进记录列表失败', reject)
                }
            });
        })
    },
    followLableList(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/followLableList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求贷后标签列表失败', reject)
                }
            });
        })
    },
    waitFollowList(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/waitFollowListNew"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求我的贷后记录失败！', reject)
                }
            });
        })
    },
    historyFollowList(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/historyFollowList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求我的催收历史失败！', reject)
                }
            });
        })
    },
    badDebtList(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/badDebtList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求我的异常催收失败！', reject)
                }
            });
        })
    },
    repayTaskCount(){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/repayTaskCount"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求我的任务数量失败！', reject)
                }
            });
        })
    },
    takeOneTask(){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/takeOneTask"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求领取一个任务失败！', reject)
                }
            });
        })
    },
    detail(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/detail"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求我的贷后详情失败！', reject)
                }
            });
        })
    },
    addFollow(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("repay/addFollow"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求我的跟进记录失败！', reject)
                }
            });
        })
    },
}
const allApi = {
    getAsyncResult(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"get",
                url: convertRequestURL("getAsyncResult"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取上传进度失败',reject)
                }
            });
        })
    },
    overview(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("log/dataOverview"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求数据概览失败！', reject)
                }
            });
        })
    },
    userData(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("log/userDetailed"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求用户数据失败！', reject)
                }
            });
        })
    },
    dataList(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("backstage/dataList"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求每日数据失败！', reject)
                }
            });
        })
    },
    creditReport(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("backstage/creditReport"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求信用认证情况失败！', reject)
                }
            });
        })
    },
    chargeOrCashOut(index){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("backstage/chargeOrCashOut"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求提现申请人数失败！', reject)
                }
            });
        })
    },
    cashOutDetail(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("backstage/cashOutDetail"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求提现列表失败！', reject)
                }
            });
        })
    },
    chargeDetail(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("backstage/chargeDetail"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求充值列表失败！', reject)
                }
            });
        })
    },
    userCount(index){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("user/count"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取用户统计失败！', reject)
                }
            });
        })
    },
    userList(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL(`backstage/userList`),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取用户列表失败！', reject)
                }
            });
        })
    },
    userRecommend(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL(`backstage/setUserRecommend`),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求设置用户推荐失败！', reject)
                }
            });
        })
    },
    delRecommend(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL(`backstage/delUserRecommend`),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求取消用户推荐失败！', reject)
                }
            });
        })
    },
    orderListByUser(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("order/listByUser"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取用户订单列表失败！', reject)
                }
            });
        })
    },
    orderCount(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("order/count"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取用户订单列表失败！', reject)
                }
            });
        })
    },
    orderList(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("order/list"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取订单列表失败！', reject)
                }
            });
        })
    },
    orderDetail(id){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("order/getOrderInfo"),
                data:{orderId:id},
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取订单列表失败！', reject)
                }
            });
        })
    },
    transactionAnalysisDetail(id){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("user/statisticsDetail"),
                data:{id:id},
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取统计详情失败！', reject)
                }
            });
        })
    },
    transactionAnalysisHistory(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("user/statisticsPage"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取每日数据失败！', reject)
                }
            });
        })
    },
    transactionAnalysisToday(){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("user/statisticsToday"),
                data:{},
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取今日数据失败！', reject)
                }
            });
        })
    },
    transactionAnalysisAll(){
        return Promise.resolve({"code":0,"data":[{"blackOrderAmount":1512650,"contactsOrderAmount":284570,"date":"2017-07-17","finishOrderCount":1147,"finishOrderUserCount":1011,"id":183,"mobileOrderAmount":202530,"newUserCount":7776,"orderAmount":1999750,"orderChangeBit":"6.55%","orderEachAmount":1743,"userOrderEachAmount":1978},{"blackOrderAmount":1375090,"contactsOrderAmount":248580,"date":"2017-07-16","finishOrderCount":1018,"finishOrderUserCount":911,"id":182,"mobileOrderAmount":187050,"newUserCount":6982,"orderAmount":1810720,"orderChangeBit":"6.65%","orderEachAmount":1779,"userOrderEachAmount":1988},{"blackOrderAmount":1364140,"contactsOrderAmount":213605,"date":"2017-07-15","finishOrderCount":979,"finishOrderUserCount":866,"id":181,"mobileOrderAmount":175440,"newUserCount":6842,"orderAmount":1753185,"orderChangeBit":"6.71%","orderEachAmount":1791,"userOrderEachAmount":2024},{"blackOrderAmount":1436041,"contactsOrderAmount":256231,"date":"2017-07-14","finishOrderCount":1067,"finishOrderUserCount":953,"id":180,"mobileOrderAmount":163830,"newUserCount":7391,"orderAmount":1856102,"orderChangeBit":"6.83%","orderEachAmount":1740,"userOrderEachAmount":1948},{"blackOrderAmount":1527560,"contactsOrderAmount":221025,"date":"2017-07-13","finishOrderCount":1075,"finishOrderUserCount":979,"id":179,"mobileOrderAmount":145770,"newUserCount":7770,"orderAmount":1894355,"orderChangeBit":"6.16%","orderEachAmount":1762,"userOrderEachAmount":1935},{"blackOrderAmount":1545940,"contactsOrderAmount":193205,"date":"2017-07-12","finishOrderCount":1079,"finishOrderUserCount":978,"id":178,"mobileOrderAmount":163830,"newUserCount":8040,"orderAmount":1902975,"orderChangeBit":"6.48%","orderEachAmount":1764,"userOrderEachAmount":1946},{"blackOrderAmount":1490781,"contactsOrderAmount":198181,"date":"2017-07-11","finishOrderCount":1068,"finishOrderUserCount":988,"id":177,"mobileOrderAmount":192210,"newUserCount":9190,"orderAmount":1881172,"orderChangeBit":"5.72%","orderEachAmount":1761,"userOrderEachAmount":1904},{"blackOrderAmount":1842401,"contactsOrderAmount":276075,"date":"2017-07-10","finishOrderCount":1321,"finishOrderUserCount":1168,"id":176,"mobileOrderAmount":216720,"newUserCount":10251,"orderAmount":2335196,"orderChangeBit":"6.22%","orderEachAmount":1768,"userOrderEachAmount":1999},{"blackOrderAmount":1424502,"contactsOrderAmount":217355,"date":"2017-07-09","finishOrderCount":1011,"finishOrderUserCount":931,"id":175,"mobileOrderAmount":126420,"newUserCount":9013,"orderAmount":1768277,"orderChangeBit":"5.46%","orderEachAmount":1749,"userOrderEachAmount":1899},{"blackOrderAmount":1524040,"contactsOrderAmount":217415,"date":"2017-07-08","finishOrderCount":1096,"finishOrderUserCount":1009,"id":174,"mobileOrderAmount":174150,"newUserCount":8178,"orderAmount":1915605,"orderChangeBit":"6.43%","orderEachAmount":1748,"userOrderEachAmount":1899},{"blackOrderAmount":1606711,"contactsOrderAmount":147286,"date":"2017-07-07","finishOrderCount":1072,"finishOrderUserCount":971,"id":173,"mobileOrderAmount":172860,"newUserCount":8220,"orderAmount":1926857,"orderChangeBit":"6.36%","orderEachAmount":1797,"userOrderEachAmount":1984},{"blackOrderAmount":1495162,"contactsOrderAmount":171658,"date":"2017-07-06","finishOrderCount":1005,"finishOrderUserCount":919,"id":172,"mobileOrderAmount":116100,"newUserCount":7150,"orderAmount":1782920,"orderChangeBit":"6.32%","orderEachAmount":1774,"userOrderEachAmount":1940},{"blackOrderAmount":1577401,"contactsOrderAmount":199628,"date":"2017-07-05","finishOrderCount":1065,"finishOrderUserCount":971,"id":171,"mobileOrderAmount":138030,"newUserCount":8490,"orderAmount":1915059,"orderChangeBit":"6.51%","orderEachAmount":1798,"userOrderEachAmount":1972},{"blackOrderAmount":1657892,"contactsOrderAmount":201105,"date":"2017-07-04","finishOrderCount":1115,"finishOrderUserCount":1009,"id":170,"mobileOrderAmount":131580,"newUserCount":8274,"orderAmount":1990577,"orderChangeBit":"6.79%","orderEachAmount":1785,"userOrderEachAmount":1973},{"blackOrderAmount":1570930,"contactsOrderAmount":177430,"date":"2017-07-03","finishOrderCount":1070,"finishOrderUserCount":966,"id":169,"mobileOrderAmount":168990,"newUserCount":8180,"orderAmount":1917350,"orderChangeBit":"6.28%","orderEachAmount":1792,"userOrderEachAmount":1985},{"blackOrderAmount":1406140,"contactsOrderAmount":153940,"date":"2017-07-02","finishOrderCount":951,"finishOrderUserCount":864,"id":168,"mobileOrderAmount":131580,"newUserCount":7449,"orderAmount":1691660,"orderChangeBit":"6.16%","orderEachAmount":1779,"userOrderEachAmount":1958},{"blackOrderAmount":1272351,"contactsOrderAmount":106124,"date":"2017-07-01","finishOrderCount":810,"finishOrderUserCount":739,"id":167,"mobileOrderAmount":72241,"newUserCount":6171,"orderAmount":1450716,"orderChangeBit":"5.85%","orderEachAmount":1791,"userOrderEachAmount":1963},{"blackOrderAmount":1372981,"contactsOrderAmount":154617,"date":"2017-06-30","finishOrderCount":867,"finishOrderUserCount":791,"id":166,"mobileOrderAmount":63210,"newUserCount":7811,"orderAmount":1590808,"orderChangeBit":"5.79%","orderEachAmount":1835,"userOrderEachAmount":2011},{"blackOrderAmount":1128252,"contactsOrderAmount":136301,"date":"2017-06-29","finishOrderCount":725,"finishOrderUserCount":663,"id":165,"mobileOrderAmount":63211,"newUserCount":6753,"orderAmount":1327764,"orderChangeBit":"5.35%","orderEachAmount":1831,"userOrderEachAmount":2003},{"blackOrderAmount":874568,"contactsOrderAmount":106630,"date":"2017-06-28","finishOrderCount":580,"finishOrderUserCount":505,"id":164,"mobileOrderAmount":36123,"newUserCount":5816,"orderAmount":1017321,"orderChangeBit":"4.75%","orderEachAmount":1754,"userOrderEachAmount":2014},{"blackOrderAmount":900970,"contactsOrderAmount":91747,"date":"2017-06-27","finishOrderCount":578,"finishOrderUserCount":526,"id":162,"mobileOrderAmount":68370,"newUserCount":5584,"orderAmount":1061087,"orderChangeBit":"5.53%","orderEachAmount":1836,"userOrderEachAmount":2017},{"blackOrderAmount":1077534,"contactsOrderAmount":103942,"date":"2017-06-26","finishOrderCount":689,"finishOrderUserCount":609,"id":161,"mobileOrderAmount":76111,"newUserCount":5916,"orderAmount":1257587,"orderChangeBit":"5.56%","orderEachAmount":1825,"userOrderEachAmount":2065},{"blackOrderAmount":985470,"contactsOrderAmount":115115,"date":"2017-06-25","finishOrderCount":644,"finishOrderUserCount":565,"id":160,"mobileOrderAmount":78690,"newUserCount":5339,"orderAmount":1179275,"orderChangeBit":"5.83%","orderEachAmount":1831,"userOrderEachAmount":2087},{"blackOrderAmount":961090,"contactsOrderAmount":106735,"date":"2017-06-24","finishOrderCount":620,"finishOrderUserCount":559,"id":159,"mobileOrderAmount":77400,"newUserCount":5338,"orderAmount":1145225,"orderChangeBit":"5.64%","orderEachAmount":1847,"userOrderEachAmount":2049},{"blackOrderAmount":811381,"contactsOrderAmount":91715,"date":"2017-06-23","finishOrderCount":520,"finishOrderUserCount":474,"id":158,"mobileOrderAmount":56760,"newUserCount":4945,"orderAmount":959856,"orderChangeBit":"5.48%","orderEachAmount":1846,"userOrderEachAmount":2025},{"blackOrderAmount":891971,"contactsOrderAmount":89945,"date":"2017-06-22","finishOrderCount":563,"finishOrderUserCount":502,"id":157,"mobileOrderAmount":55470,"newUserCount":4736,"orderAmount":1037386,"orderChangeBit":"6.38%","orderEachAmount":1843,"userOrderEachAmount":2067},{"blackOrderAmount":1001892,"contactsOrderAmount":81172,"date":"2017-06-21","finishOrderCount":598,"finishOrderUserCount":530,"id":156,"mobileOrderAmount":30961,"newUserCount":4940,"orderAmount":1114025,"orderChangeBit":"6.68%","orderEachAmount":1863,"userOrderEachAmount":2102},{"blackOrderAmount":948180,"contactsOrderAmount":69676,"date":"2017-06-20","finishOrderCount":565,"finishOrderUserCount":485,"id":155,"mobileOrderAmount":49020,"newUserCount":4922,"orderAmount":1066876,"orderChangeBit":"6.05%","orderEachAmount":1888,"userOrderEachAmount":2200},{"blackOrderAmount":996924,"contactsOrderAmount":77515,"date":"2017-06-19","finishOrderCount":613,"finishOrderUserCount":534,"id":154,"mobileOrderAmount":55470,"newUserCount":5113,"orderAmount":1129909,"orderChangeBit":"6.14%","orderEachAmount":1843,"userOrderEachAmount":2116},{"blackOrderAmount":812370,"contactsOrderAmount":86090,"date":"2017-06-18","finishOrderCount":507,"finishOrderUserCount":434,"id":153,"mobileOrderAmount":46440,"newUserCount":4513,"orderAmount":944900,"orderChangeBit":"5.34%","orderEachAmount":1864,"userOrderEachAmount":2177},{"blackOrderAmount":797940,"contactsOrderAmount":77625,"date":"2017-06-17","finishOrderCount":495,"finishOrderUserCount":428,"id":152,"mobileOrderAmount":43860,"newUserCount":4410,"orderAmount":919425,"orderChangeBit":"6.05%","orderEachAmount":1857,"userOrderEachAmount":2148},{"blackOrderAmount":815350,"contactsOrderAmount":73880,"date":"2017-06-16","finishOrderCount":495,"finishOrderUserCount":441,"id":151,"mobileOrderAmount":39990,"newUserCount":4704,"orderAmount":929220,"orderChangeBit":"5.06%","orderEachAmount":1877,"userOrderEachAmount":2107},{"blackOrderAmount":911870,"contactsOrderAmount":79120,"date":"2017-06-15","finishOrderCount":543,"finishOrderUserCount":476,"id":150,"mobileOrderAmount":34830,"newUserCount":4940,"orderAmount":1025820,"orderChangeBit":"5.77%","orderEachAmount":1889,"userOrderEachAmount":2155},{"blackOrderAmount":948710,"contactsOrderAmount":79040,"date":"2017-06-14","finishOrderCount":571,"finishOrderUserCount":503,"id":149,"mobileOrderAmount":46440,"newUserCount":5050,"orderAmount":1074190,"orderChangeBit":"6%","orderEachAmount":1881,"userOrderEachAmount":2136},{"blackOrderAmount":1018850,"contactsOrderAmount":83970,"date":"2017-06-13","finishOrderCount":617,"finishOrderUserCount":534,"id":148,"mobileOrderAmount":55470,"newUserCount":5397,"orderAmount":1158290,"orderChangeBit":"5.91%","orderEachAmount":1877,"userOrderEachAmount":2169},{"blackOrderAmount":1108400,"contactsOrderAmount":89571,"date":"2017-06-12","finishOrderCount":671,"finishOrderUserCount":581,"id":147,"mobileOrderAmount":55470,"newUserCount":5791,"orderAmount":1253441,"orderChangeBit":"6.11%","orderEachAmount":1868,"userOrderEachAmount":2157},{"blackOrderAmount":1094960,"contactsOrderAmount":93040,"date":"2017-06-11","finishOrderCount":677,"finishOrderUserCount":582,"id":146,"mobileOrderAmount":68370,"newUserCount":5871,"orderAmount":1256370,"orderChangeBit":"5.76%","orderEachAmount":1856,"userOrderEachAmount":2159},{"blackOrderAmount":1009390,"contactsOrderAmount":84380,"date":"2017-06-10","finishOrderCount":612,"finishOrderUserCount":541,"id":145,"mobileOrderAmount":47730,"newUserCount":5837,"orderAmount":1141500,"orderChangeBit":"5.45%","orderEachAmount":1865,"userOrderEachAmount":2110},{"blackOrderAmount":1206403,"contactsOrderAmount":124026,"date":"2017-06-09","finishOrderCount":752,"finishOrderUserCount":641,"id":144,"mobileOrderAmount":72240,"newUserCount":6363,"orderAmount":1402669,"orderChangeBit":"6%","orderEachAmount":1865,"userOrderEachAmount":2188},{"blackOrderAmount":1076081,"contactsOrderAmount":82455,"date":"2017-06-08","finishOrderCount":657,"finishOrderUserCount":569,"id":143,"mobileOrderAmount":69660,"newUserCount":5984,"orderAmount":1228196,"orderChangeBit":"5.43%","orderEachAmount":1869,"userOrderEachAmount":2159},{"blackOrderAmount":1036791,"contactsOrderAmount":100576,"date":"2017-06-07","finishOrderCount":643,"finishOrderUserCount":555,"id":142,"mobileOrderAmount":58050,"newUserCount":6193,"orderAmount":1195417,"orderChangeBit":"4.97%","orderEachAmount":1859,"userOrderEachAmount":2154},{"blackOrderAmount":1180072,"contactsOrderAmount":99802,"date":"2017-06-06","finishOrderCount":719,"finishOrderUserCount":637,"id":141,"mobileOrderAmount":63210,"newUserCount":6699,"orderAmount":1343084,"orderChangeBit":"5.43%","orderEachAmount":1868,"userOrderEachAmount":2108},{"blackOrderAmount":1113395,"contactsOrderAmount":96402,"date":"2017-06-05","finishOrderCount":681,"finishOrderUserCount":608,"id":140,"mobileOrderAmount":49020,"newUserCount":6747,"orderAmount":1258817,"orderChangeBit":"5.1%","orderEachAmount":1848,"userOrderEachAmount":2070},{"blackOrderAmount":871620,"contactsOrderAmount":0,"date":"2017-06-04","finishOrderCount":438,"finishOrderUserCount":438,"id":139,"mobileOrderAmount":0,"newUserCount":6580,"orderAmount":871620,"orderChangeBit":"3.74%","orderEachAmount":1990,"userOrderEachAmount":1990},{"blackOrderAmount":676600,"contactsOrderAmount":75020,"date":"2017-06-03","finishOrderCount":397,"finishOrderUserCount":364,"id":138,"mobileOrderAmount":2580,"newUserCount":5702,"orderAmount":754200,"orderChangeBit":"3.95%","orderEachAmount":1900,"userOrderEachAmount":2072},{"blackOrderAmount":1057152,"contactsOrderAmount":114530,"date":"2017-06-02","finishOrderCount":663,"finishOrderUserCount":563,"id":137,"mobileOrderAmount":60631,"newUserCount":6684,"orderAmount":1232313,"orderChangeBit":"5.21%","orderEachAmount":1859,"userOrderEachAmount":2189},{"blackOrderAmount":1109880,"contactsOrderAmount":126401,"date":"2017-06-01","finishOrderCount":698,"finishOrderUserCount":609,"id":136,"mobileOrderAmount":55470,"newUserCount":6748,"orderAmount":1291751,"orderChangeBit":"5.65%","orderEachAmount":1851,"userOrderEachAmount":2121},{"blackOrderAmount":972091,"contactsOrderAmount":81596,"date":"2017-05-31","finishOrderCount":568,"finishOrderUserCount":512,"id":135,"mobileOrderAmount":32250,"newUserCount":6725,"orderAmount":1085937,"orderChangeBit":"4.64%","orderEachAmount":1912,"userOrderEachAmount":2121},{"blackOrderAmount":813391,"contactsOrderAmount":95830,"date":"2017-05-30","finishOrderCount":507,"finishOrderUserCount":445,"id":134,"mobileOrderAmount":38700,"newUserCount":5185,"orderAmount":947921,"orderChangeBit":"5.4%","orderEachAmount":1870,"userOrderEachAmount":2130},{"blackOrderAmount":850690,"contactsOrderAmount":92011,"date":"2017-05-29","finishOrderCount":526,"finishOrderUserCount":447,"id":133,"mobileOrderAmount":36120,"newUserCount":5790,"orderAmount":978821,"orderChangeBit":"4.92%","orderEachAmount":1861,"userOrderEachAmount":2190},{"blackOrderAmount":763650,"contactsOrderAmount":89821,"date":"2017-05-28","finishOrderCount":469,"finishOrderUserCount":404,"id":132,"mobileOrderAmount":28380,"newUserCount":5408,"orderAmount":881851,"orderChangeBit":"4.68%","orderEachAmount":1880,"userOrderEachAmount":2183},{"blackOrderAmount":856662,"contactsOrderAmount":106246,"date":"2017-05-27","finishOrderCount":537,"finishOrderUserCount":452,"id":131,"mobileOrderAmount":34830,"newUserCount":5909,"orderAmount":997738,"orderChangeBit":"4.87%","orderEachAmount":1858,"userOrderEachAmount":2207},{"blackOrderAmount":940762,"contactsOrderAmount":108904,"date":"2017-05-26","finishOrderCount":599,"finishOrderUserCount":526,"id":130,"mobileOrderAmount":59340,"newUserCount":6606,"orderAmount":1109006,"orderChangeBit":"5.22%","orderEachAmount":1851,"userOrderEachAmount":2108},{"blackOrderAmount":964140,"contactsOrderAmount":139350,"date":"2017-05-25","finishOrderCount":600,"finishOrderUserCount":513,"id":129,"mobileOrderAmount":42570,"newUserCount":6713,"orderAmount":1146060,"orderChangeBit":"5.14%","orderEachAmount":1910,"userOrderEachAmount":2234},{"blackOrderAmount":1090500,"contactsOrderAmount":106560,"date":"2017-05-24","finishOrderCount":660,"finishOrderUserCount":581,"id":128,"mobileOrderAmount":45150,"newUserCount":6997,"orderAmount":1242210,"orderChangeBit":"5.46%","orderEachAmount":1882,"userOrderEachAmount":2138},{"blackOrderAmount":1069820,"contactsOrderAmount":125580,"date":"2017-05-23","finishOrderCount":664,"finishOrderUserCount":569,"id":127,"mobileOrderAmount":42570,"newUserCount":8112,"orderAmount":1237970,"orderChangeBit":"4.61%","orderEachAmount":1864,"userOrderEachAmount":2176},{"blackOrderAmount":1091402,"contactsOrderAmount":128507,"date":"2017-05-22","finishOrderCount":704,"finishOrderUserCount":586,"id":126,"mobileOrderAmount":63212,"newUserCount":8230,"orderAmount":1283121,"orderChangeBit":"4.96%","orderEachAmount":1823,"userOrderEachAmount":2190},{"blackOrderAmount":987530,"contactsOrderAmount":93955,"date":"2017-05-21","finishOrderCount":586,"finishOrderUserCount":512,"id":125,"mobileOrderAmount":27090,"newUserCount":7468,"orderAmount":1108575,"orderChangeBit":"4.71%","orderEachAmount":1892,"userOrderEachAmount":2165},{"blackOrderAmount":872560,"contactsOrderAmount":87140,"date":"2017-05-20","finishOrderCount":548,"finishOrderUserCount":461,"id":124,"mobileOrderAmount":51600,"newUserCount":7642,"orderAmount":1011300,"orderChangeBit":"4.29%","orderEachAmount":1845,"userOrderEachAmount":2194},{"blackOrderAmount":863092,"contactsOrderAmount":109058,"date":"2017-05-19","finishOrderCount":559,"finishOrderUserCount":472,"id":123,"mobileOrderAmount":45150,"newUserCount":8320,"orderAmount":1017300,"orderChangeBit":"4.33%","orderEachAmount":1820,"userOrderEachAmount":2155},{"blackOrderAmount":952530,"contactsOrderAmount":95515,"date":"2017-05-18","finishOrderCount":609,"finishOrderUserCount":515,"id":122,"mobileOrderAmount":68370,"newUserCount":8775,"orderAmount":1116415,"orderChangeBit":"4.55%","orderEachAmount":1833,"userOrderEachAmount":2168},{"blackOrderAmount":1068090,"contactsOrderAmount":128327,"date":"2017-05-17","finishOrderCount":698,"finishOrderUserCount":565,"id":121,"mobileOrderAmount":81270,"newUserCount":9559,"orderAmount":1277687,"orderChangeBit":"4.69%","orderEachAmount":1830,"userOrderEachAmount":2261},{"blackOrderAmount":1311900,"contactsOrderAmount":132445,"date":"2017-05-16","finishOrderCount":835,"finishOrderUserCount":697,"id":120,"mobileOrderAmount":100620,"newUserCount":10961,"orderAmount":1544965,"orderChangeBit":"5.27%","orderEachAmount":1850,"userOrderEachAmount":2217},{"blackOrderAmount":1434793,"contactsOrderAmount":160220,"date":"2017-05-15","finishOrderCount":901,"finishOrderUserCount":748,"id":119,"mobileOrderAmount":76114,"newUserCount":10909,"orderAmount":1671127,"orderChangeBit":"5.9%","orderEachAmount":1855,"userOrderEachAmount":2234},{"blackOrderAmount":618891,"contactsOrderAmount":56155,"date":"2017-05-14","finishOrderCount":391,"finishOrderUserCount":332,"id":118,"mobileOrderAmount":49020,"newUserCount":5358,"orderAmount":724066,"orderChangeBit":"4.98%","orderEachAmount":1852,"userOrderEachAmount":2181},{"blackOrderAmount":431830,"contactsOrderAmount":44330,"date":"2017-05-13","finishOrderCount":271,"finishOrderUserCount":229,"id":117,"mobileOrderAmount":32250,"newUserCount":3228,"orderAmount":508410,"orderChangeBit":"5.79%","orderEachAmount":1876,"userOrderEachAmount":2220},{"blackOrderAmount":384073,"contactsOrderAmount":40227,"date":"2017-05-12","finishOrderCount":237,"finishOrderUserCount":192,"id":116,"mobileOrderAmount":15481,"newUserCount":2300,"orderAmount":439781,"orderChangeBit":"6.65%","orderEachAmount":1856,"userOrderEachAmount":2291},{"blackOrderAmount":306460,"contactsOrderAmount":20287,"date":"2017-05-11","finishOrderCount":181,"finishOrderUserCount":156,"id":115,"mobileOrderAmount":12900,"newUserCount":1277,"orderAmount":339647,"orderChangeBit":"9.32%","orderEachAmount":1877,"userOrderEachAmount":2177},{"blackOrderAmount":232830,"contactsOrderAmount":22557,"date":"2017-05-10","finishOrderCount":142,"finishOrderUserCount":119,"id":114,"mobileOrderAmount":10320,"newUserCount":1129,"orderAmount":265707,"orderChangeBit":"8.33%","orderEachAmount":1871,"userOrderEachAmount":2233},{"blackOrderAmount":272631,"contactsOrderAmount":18638,"date":"2017-05-09","finishOrderCount":165,"finishOrderUserCount":136,"id":113,"mobileOrderAmount":12901,"newUserCount":1107,"orderAmount":304170,"orderChangeBit":"8.85%","orderEachAmount":1843,"userOrderEachAmount":2237},{"blackOrderAmount":258700,"contactsOrderAmount":32235,"date":"2017-05-08","finishOrderCount":167,"finishOrderUserCount":132,"id":112,"mobileOrderAmount":16771,"newUserCount":1136,"orderAmount":307706,"orderChangeBit":"8.8%","orderEachAmount":1843,"userOrderEachAmount":2331},{"blackOrderAmount":244770,"contactsOrderAmount":28550,"date":"2017-05-07","finishOrderCount":156,"finishOrderUserCount":122,"id":111,"mobileOrderAmount":16770,"newUserCount":1113,"orderAmount":290090,"orderChangeBit":"8.72%","orderEachAmount":1860,"userOrderEachAmount":2378},{"blackOrderAmount":250740,"contactsOrderAmount":32145,"date":"2017-05-06","finishOrderCount":162,"finishOrderUserCount":125,"id":110,"mobileOrderAmount":18060,"newUserCount":1063,"orderAmount":300945,"orderChangeBit":"9.03%","orderEachAmount":1858,"userOrderEachAmount":2408},{"blackOrderAmount":268650,"contactsOrderAmount":31951,"date":"2017-05-05","finishOrderCount":171,"finishOrderUserCount":135,"id":109,"mobileOrderAmount":16770,"newUserCount":1325,"orderAmount":317371,"orderChangeBit":"7.4%","orderEachAmount":1856,"userOrderEachAmount":2351},{"blackOrderAmount":326360,"contactsOrderAmount":24600,"date":"2017-05-04","finishOrderCount":196,"finishOrderUserCount":168,"id":108,"mobileOrderAmount":18060,"newUserCount":1268,"orderAmount":369020,"orderChangeBit":"9.46%","orderEachAmount":1883,"userOrderEachAmount":2197},{"blackOrderAmount":338304,"contactsOrderAmount":16846,"date":"2017-05-03","finishOrderCount":236,"finishOrderUserCount":192,"id":107,"mobileOrderAmount":23221,"newUserCount":1398,"orderAmount":378371,"orderChangeBit":"10.52%","orderEachAmount":1603,"userOrderEachAmount":1971},{"blackOrderAmount":278600,"contactsOrderAmount":17296,"date":"2017-05-02","finishOrderCount":188,"finishOrderUserCount":163,"id":106,"mobileOrderAmount":9031,"newUserCount":1130,"orderAmount":304927,"orderChangeBit":"11.42%","orderEachAmount":1622,"userOrderEachAmount":1871},{"blackOrderAmount":189050,"contactsOrderAmount":20845,"date":"2017-05-01","finishOrderCount":144,"finishOrderUserCount":105,"id":105,"mobileOrderAmount":12900,"newUserCount":879,"orderAmount":222795,"orderChangeBit":"9.67%","orderEachAmount":1547,"userOrderEachAmount":2122},{"blackOrderAmount":212930,"contactsOrderAmount":9030,"date":"2017-04-30","finishOrderCount":152,"finishOrderUserCount":122,"id":104,"mobileOrderAmount":7740,"newUserCount":848,"orderAmount":229700,"orderChangeBit":"11.32%","orderEachAmount":1511,"userOrderEachAmount":1883},{"blackOrderAmount":226860,"contactsOrderAmount":10320,"date":"2017-04-29","finishOrderCount":172,"finishOrderUserCount":131,"id":103,"mobileOrderAmount":11610,"newUserCount":777,"orderAmount":248790,"orderChangeBit":"13.51%","orderEachAmount":1446,"userOrderEachAmount":1899},{"blackOrderAmount":224871,"contactsOrderAmount":17317,"date":"2017-04-28","finishOrderCount":181,"finishOrderUserCount":131,"id":102,"mobileOrderAmount":15481,"newUserCount":564,"orderAmount":257669,"orderChangeBit":"18.09%","orderEachAmount":1424,"userOrderEachAmount":1967},{"blackOrderAmount":191041,"contactsOrderAmount":9033,"date":"2017-04-27","finishOrderCount":179,"finishOrderUserCount":123,"id":101,"mobileOrderAmount":9031,"newUserCount":653,"orderAmount":209105,"orderChangeBit":"15.31%","orderEachAmount":1168,"userOrderEachAmount":1700},{"blackOrderAmount":254720,"contactsOrderAmount":14251,"date":"2017-04-26","finishOrderCount":244,"finishOrderUserCount":155,"id":100,"mobileOrderAmount":14190,"newUserCount":658,"orderAmount":283161,"orderChangeBit":"17.48%","orderEachAmount":1160,"userOrderEachAmount":1827},{"blackOrderAmount":254720,"contactsOrderAmount":14251,"date":"2017-04-26","finishOrderCount":244,"finishOrderUserCount":155,"id":99,"mobileOrderAmount":14190,"newUserCount":658,"orderAmount":283161,"orderChangeBit":"17.48%","orderEachAmount":1160,"userOrderEachAmount":1827},{"blackOrderAmount":248750,"contactsOrderAmount":14910,"date":"2017-04-25","finishOrderCount":193,"finishOrderUserCount":148,"id":97,"mobileOrderAmount":16770,"newUserCount":664,"orderAmount":280430,"orderChangeBit":"18.07%","orderEachAmount":1453,"userOrderEachAmount":1895},{"blackOrderAmount":270643,"contactsOrderAmount":27095,"date":"2017-04-24","finishOrderCount":202,"finishOrderUserCount":143,"id":95,"mobileOrderAmount":16771,"newUserCount":642,"orderAmount":314509,"orderChangeBit":"17.29%","orderEachAmount":1557,"userOrderEachAmount":2199},{"blackOrderAmount":81591,"contactsOrderAmount":17805,"date":"2017-04-23","finishOrderCount":96,"finishOrderUserCount":56,"id":94,"mobileOrderAmount":2581,"newUserCount":271,"orderAmount":101977,"orderChangeBit":"10.33%","orderEachAmount":1062,"userOrderEachAmount":1821},{"blackOrderAmount":183080,"contactsOrderAmount":19525,"date":"2017-04-22","finishOrderCount":154,"finishOrderUserCount":115,"id":93,"mobileOrderAmount":7740,"newUserCount":546,"orderAmount":210345,"orderChangeBit":"16.48%","orderEachAmount":1366,"userOrderEachAmount":1829},{"blackOrderAmount":212930,"contactsOrderAmount":11505,"date":"2017-04-21","finishOrderCount":134,"finishOrderUserCount":116,"id":92,"mobileOrderAmount":9030,"newUserCount":615,"orderAmount":233465,"orderChangeBit":"14.63%","orderEachAmount":1742,"userOrderEachAmount":2013},{"blackOrderAmount":268651,"contactsOrderAmount":34756,"date":"2017-04-20","finishOrderCount":179,"finishOrderUserCount":138,"id":91,"mobileOrderAmount":9034,"newUserCount":676,"orderAmount":312441,"orderChangeBit":"14.94%","orderEachAmount":1745,"userOrderEachAmount":2264},{"blackOrderAmount":278600,"contactsOrderAmount":16065,"date":"2017-04-19","finishOrderCount":160,"finishOrderUserCount":132,"id":90,"mobileOrderAmount":10320,"newUserCount":680,"orderAmount":304985,"orderChangeBit":"13.97%","orderEachAmount":1906,"userOrderEachAmount":2310},{"blackOrderAmount":272630,"contactsOrderAmount":34096,"date":"2017-04-18","finishOrderCount":165,"finishOrderUserCount":128,"id":89,"mobileOrderAmount":2581,"newUserCount":673,"orderAmount":309307,"orderChangeBit":"15.45%","orderEachAmount":1875,"userOrderEachAmount":2416},{"blackOrderAmount":276610,"contactsOrderAmount":27210,"date":"2017-04-17","finishOrderCount":156,"finishOrderUserCount":131,"id":88,"mobileOrderAmount":0,"newUserCount":666,"orderAmount":305111,"orderChangeBit":"16.22%","orderEachAmount":1956,"userOrderEachAmount":2329},{"blackOrderAmount":286560,"contactsOrderAmount":35710,"date":"2017-04-16","finishOrderCount":171,"finishOrderUserCount":139,"id":87,"mobileOrderAmount":0,"newUserCount":643,"orderAmount":327430,"orderChangeBit":"18.51%","orderEachAmount":1915,"userOrderEachAmount":2356},{"blackOrderAmount":232830,"contactsOrderAmount":27585,"date":"2017-04-15","finishOrderCount":141,"finishOrderUserCount":122,"id":86,"mobileOrderAmount":0,"newUserCount":691,"orderAmount":265575,"orderChangeBit":"13.6%","orderEachAmount":1884,"userOrderEachAmount":2177},{"blackOrderAmount":308452,"contactsOrderAmount":41346,"date":"2017-04-14","finishOrderCount":192,"finishOrderUserCount":157,"id":85,"mobileOrderAmount":0,"newUserCount":695,"orderAmount":349802,"orderChangeBit":"17.99%","orderEachAmount":1822,"userOrderEachAmount":2228},{"blackOrderAmount":374120,"contactsOrderAmount":53420,"date":"2017-04-13","finishOrderCount":226,"finishOrderUserCount":180,"id":84,"mobileOrderAmount":0,"newUserCount":814,"orderAmount":427540,"orderChangeBit":"17.44%","orderEachAmount":1892,"userOrderEachAmount":2375},{"blackOrderAmount":316410,"contactsOrderAmount":40175,"date":"2017-04-12","finishOrderCount":184,"finishOrderUserCount":147,"id":83,"mobileOrderAmount":0,"newUserCount":729,"orderAmount":356585,"orderChangeBit":"16.87%","orderEachAmount":1938,"userOrderEachAmount":2426},{"blackOrderAmount":302480,"contactsOrderAmount":37851,"date":"2017-04-11","finishOrderCount":173,"finishOrderUserCount":154,"id":82,"mobileOrderAmount":0,"newUserCount":740,"orderAmount":340331,"orderChangeBit":"16.76%","orderEachAmount":1967,"userOrderEachAmount":2210},{"blackOrderAmount":308451,"contactsOrderAmount":39796,"date":"2017-04-10","finishOrderCount":185,"finishOrderUserCount":160,"id":81,"mobileOrderAmount":0,"newUserCount":786,"orderAmount":348247,"orderChangeBit":"15.52%","orderEachAmount":1882,"userOrderEachAmount":2177},{"blackOrderAmount":336310,"contactsOrderAmount":59105,"date":"2017-04-09","finishOrderCount":202,"finishOrderUserCount":156,"id":80,"mobileOrderAmount":0,"newUserCount":754,"orderAmount":395415,"orderChangeBit":"16.84%","orderEachAmount":1958,"userOrderEachAmount":2535},{"blackOrderAmount":276610,"contactsOrderAmount":31235,"date":"2017-04-08","finishOrderCount":163,"finishOrderUserCount":133,"id":79,"mobileOrderAmount":0,"newUserCount":653,"orderAmount":307845,"orderChangeBit":"16.54%","orderEachAmount":1889,"userOrderEachAmount":2315},{"blackOrderAmount":272630,"contactsOrderAmount":38355,"date":"2017-04-07","finishOrderCount":160,"finishOrderUserCount":136,"id":78,"mobileOrderAmount":0,"newUserCount":669,"orderAmount":310985,"orderChangeBit":"17.49%","orderEachAmount":1944,"userOrderEachAmount":2287},{"blackOrderAmount":314421,"contactsOrderAmount":37485,"date":"2017-04-06","finishOrderCount":187,"finishOrderUserCount":157,"id":77,"mobileOrderAmount":0,"newUserCount":738,"orderAmount":351906,"orderChangeBit":"17.89%","orderEachAmount":1882,"userOrderEachAmount":2241},{"blackOrderAmount":308451,"contactsOrderAmount":20050,"date":"2017-04-05","finishOrderCount":174,"finishOrderUserCount":149,"id":76,"mobileOrderAmount":0,"newUserCount":691,"orderAmount":328501,"orderChangeBit":"17.66%","orderEachAmount":1888,"userOrderEachAmount":2205},{"blackOrderAmount":280590,"contactsOrderAmount":29030,"date":"2017-04-04","finishOrderCount":161,"finishOrderUserCount":141,"id":75,"mobileOrderAmount":0,"newUserCount":607,"orderAmount":309620,"orderChangeBit":"20.59%","orderEachAmount":1923,"userOrderEachAmount":2196},{"blackOrderAmount":276610,"contactsOrderAmount":43005,"date":"2017-04-03","finishOrderCount":163,"finishOrderUserCount":138,"id":74,"mobileOrderAmount":0,"newUserCount":554,"orderAmount":319615,"orderChangeBit":"20.4%","orderEachAmount":1961,"userOrderEachAmount":2316},{"blackOrderAmount":224870,"contactsOrderAmount":20640,"date":"2017-04-02","finishOrderCount":129,"finishOrderUserCount":111,"id":73,"mobileOrderAmount":0,"newUserCount":546,"orderAmount":245510,"orderChangeBit":"17.22%","orderEachAmount":1903,"userOrderEachAmount":2212},{"blackOrderAmount":248750,"contactsOrderAmount":29955,"date":"2017-04-01","finishOrderCount":147,"finishOrderUserCount":129,"id":72,"mobileOrderAmount":0,"newUserCount":579,"orderAmount":278705,"orderChangeBit":"17.96%","orderEachAmount":1896,"userOrderEachAmount":2161},{"blackOrderAmount":282580,"contactsOrderAmount":30475,"date":"2017-03-31","finishOrderCount":164,"finishOrderUserCount":139,"id":71,"mobileOrderAmount":0,"newUserCount":582,"orderAmount":313055,"orderChangeBit":"19.24%","orderEachAmount":1909,"userOrderEachAmount":2252},{"blackOrderAmount":306461,"contactsOrderAmount":34442,"date":"2017-03-30","finishOrderCount":183,"finishOrderUserCount":156,"id":70,"mobileOrderAmount":0,"newUserCount":675,"orderAmount":340903,"orderChangeBit":"18.67%","orderEachAmount":1863,"userOrderEachAmount":2185},{"blackOrderAmount":290540,"contactsOrderAmount":36800,"date":"2017-03-29","finishOrderCount":172,"finishOrderUserCount":146,"id":69,"mobileOrderAmount":0,"newUserCount":700,"orderAmount":327340,"orderChangeBit":"16.43%","orderEachAmount":1903,"userOrderEachAmount":2242},{"blackOrderAmount":336317,"contactsOrderAmount":31575,"date":"2017-03-28","finishOrderCount":205,"finishOrderUserCount":159,"id":68,"mobileOrderAmount":0,"newUserCount":704,"orderAmount":367892,"orderChangeBit":"18.47%","orderEachAmount":1795,"userOrderEachAmount":2314},{"blackOrderAmount":296511,"contactsOrderAmount":30025,"date":"2017-03-27","finishOrderCount":169,"finishOrderUserCount":133,"id":67,"mobileOrderAmount":0,"newUserCount":672,"orderAmount":326536,"orderChangeBit":"17.41%","orderEachAmount":1932,"userOrderEachAmount":2455},{"blackOrderAmount":216911,"contactsOrderAmount":26726,"date":"2017-03-26","finishOrderCount":127,"finishOrderUserCount":110,"id":66,"mobileOrderAmount":0,"newUserCount":514,"orderAmount":243637,"orderChangeBit":"18.48%","orderEachAmount":1918,"userOrderEachAmount":2215},{"blackOrderAmount":276610,"contactsOrderAmount":47555,"date":"2017-03-25","finishOrderCount":166,"finishOrderUserCount":133,"id":65,"mobileOrderAmount":0,"newUserCount":599,"orderAmount":324165,"orderChangeBit":"17.86%","orderEachAmount":1953,"userOrderEachAmount":2437},{"blackOrderAmount":308450,"contactsOrderAmount":44610,"date":"2017-03-24","finishOrderCount":186,"finishOrderUserCount":154,"id":64,"mobileOrderAmount":0,"newUserCount":664,"orderAmount":353060,"orderChangeBit":"19.28%","orderEachAmount":1898,"userOrderEachAmount":2293},{"blackOrderAmount":298500,"contactsOrderAmount":53305,"date":"2017-03-23","finishOrderCount":190,"finishOrderUserCount":153,"id":63,"mobileOrderAmount":0,"newUserCount":712,"orderAmount":351805,"orderChangeBit":"18.12%","orderEachAmount":1852,"userOrderEachAmount":2299},{"blackOrderAmount":374123,"contactsOrderAmount":53067,"date":"2017-03-22","finishOrderCount":228,"finishOrderUserCount":186,"id":62,"mobileOrderAmount":0,"newUserCount":835,"orderAmount":427190,"orderChangeBit":"18.56%","orderEachAmount":1874,"userOrderEachAmount":2297},{"blackOrderAmount":419891,"contactsOrderAmount":62343,"date":"2017-03-21","finishOrderCount":254,"finishOrderUserCount":202,"id":61,"mobileOrderAmount":0,"newUserCount":806,"orderAmount":482234,"orderChangeBit":"22.21%","orderEachAmount":1899,"userOrderEachAmount":2387},{"blackOrderAmount":388050,"contactsOrderAmount":35385,"date":"2017-03-20","finishOrderCount":221,"finishOrderUserCount":187,"id":60,"mobileOrderAmount":0,"newUserCount":892,"orderAmount":423435,"orderChangeBit":"17.38%","orderEachAmount":1916,"userOrderEachAmount":2264},{"blackOrderAmount":308450,"contactsOrderAmount":61115,"date":"2017-03-19","finishOrderCount":197,"finishOrderUserCount":149,"id":59,"mobileOrderAmount":0,"newUserCount":757,"orderAmount":369565,"orderChangeBit":"15.98%","orderEachAmount":1876,"userOrderEachAmount":2480},{"blackOrderAmount":306460,"contactsOrderAmount":30400,"date":"2017-03-18","finishOrderCount":175,"finishOrderUserCount":153,"id":58,"mobileOrderAmount":0,"newUserCount":758,"orderAmount":336860,"orderChangeBit":"17.81%","orderEachAmount":1925,"userOrderEachAmount":2202},{"blackOrderAmount":236810,"contactsOrderAmount":30820,"date":"2017-03-17","finishOrderCount":142,"finishOrderUserCount":118,"id":57,"mobileOrderAmount":0,"newUserCount":651,"orderAmount":267630,"orderChangeBit":"15.82%","orderEachAmount":1885,"userOrderEachAmount":2268},{"blackOrderAmount":304470,"contactsOrderAmount":22032,"date":"2017-03-16","finishOrderCount":172,"finishOrderUserCount":137,"id":56,"mobileOrderAmount":0,"newUserCount":643,"orderAmount":326502,"orderChangeBit":"18.82%","orderEachAmount":1898,"userOrderEachAmount":2383},{"blackOrderAmount":238805,"contactsOrderAmount":25546,"date":"2017-03-15","finishOrderCount":144,"finishOrderUserCount":120,"id":55,"mobileOrderAmount":0,"newUserCount":647,"orderAmount":264351,"orderChangeBit":"16.38%","orderEachAmount":1836,"userOrderEachAmount":2203},{"blackOrderAmount":195020,"contactsOrderAmount":35660,"date":"2017-03-14","finishOrderCount":122,"finishOrderUserCount":103,"id":54,"mobileOrderAmount":0,"newUserCount":537,"orderAmount":230680,"orderChangeBit":"16.2%","orderEachAmount":1891,"userOrderEachAmount":2240},{"blackOrderAmount":298500,"contactsOrderAmount":35895,"date":"2017-03-13","finishOrderCount":170,"finishOrderUserCount":151,"id":53,"mobileOrderAmount":0,"newUserCount":716,"orderAmount":334395,"orderChangeBit":"18.44%","orderEachAmount":1967,"userOrderEachAmount":2215},{"blackOrderAmount":149250,"contactsOrderAmount":24420,"date":"2017-03-12","finishOrderCount":90,"finishOrderUserCount":77,"id":52,"mobileOrderAmount":0,"newUserCount":441,"orderAmount":173670,"orderChangeBit":"15.65%","orderEachAmount":1930,"userOrderEachAmount":2255},{"blackOrderAmount":145270,"contactsOrderAmount":15480,"date":"2017-03-11","finishOrderCount":85,"finishOrderUserCount":69,"id":51,"mobileOrderAmount":0,"newUserCount":397,"orderAmount":160750,"orderChangeBit":"14.86%","orderEachAmount":1891,"userOrderEachAmount":2330},{"blackOrderAmount":228862,"contactsOrderAmount":28793,"date":"2017-03-10","finishOrderCount":148,"finishOrderUserCount":119,"id":50,"mobileOrderAmount":0,"newUserCount":618,"orderAmount":257655,"orderChangeBit":"17.31%","orderEachAmount":1741,"userOrderEachAmount":2165},{"blackOrderAmount":210944,"contactsOrderAmount":34298,"date":"2017-03-09","finishOrderCount":135,"finishOrderUserCount":109,"id":49,"mobileOrderAmount":0,"newUserCount":536,"orderAmount":245242,"orderChangeBit":"17.91%","orderEachAmount":1817,"userOrderEachAmount":2250},{"blackOrderAmount":264671,"contactsOrderAmount":79471,"date":"2017-03-08","finishOrderCount":156,"finishOrderUserCount":128,"id":48,"mobileOrderAmount":0,"newUserCount":586,"orderAmount":344142,"orderChangeBit":"19.45%","orderEachAmount":2206,"userOrderEachAmount":2689},{"blackOrderAmount":157212,"contactsOrderAmount":16555,"date":"2017-03-07","finishOrderCount":93,"finishOrderUserCount":75,"id":47,"mobileOrderAmount":0,"newUserCount":363,"orderAmount":173767,"orderChangeBit":"17.08%","orderEachAmount":1868,"userOrderEachAmount":2317},{"blackOrderAmount":106941,"contactsOrderAmount":6453,"date":"2017-03-06","finishOrderCount":115,"finishOrderUserCount":101,"id":46,"mobileOrderAmount":0,"newUserCount":379,"orderAmount":113394,"orderChangeBit":"24.01%","orderEachAmount":986,"userOrderEachAmount":1123},{"blackOrderAmount":117810,"contactsOrderAmount":24340,"date":"2017-03-05","finishOrderCount":132,"finishOrderUserCount":114,"id":45,"mobileOrderAmount":0,"newUserCount":380,"orderAmount":142150,"orderChangeBit":"25%","orderEachAmount":1077,"userOrderEachAmount":1247},{"blackOrderAmount":117810,"contactsOrderAmount":42540,"date":"2017-03-04","finishOrderCount":142,"finishOrderUserCount":109,"id":44,"mobileOrderAmount":0,"newUserCount":377,"orderAmount":160350,"orderChangeBit":"26.26%","orderEachAmount":1129,"userOrderEachAmount":1471},{"blackOrderAmount":164340,"contactsOrderAmount":40890,"date":"2017-03-03","finishOrderCount":188,"finishOrderUserCount":157,"id":43,"mobileOrderAmount":0,"newUserCount":506,"orderAmount":205230,"orderChangeBit":"28.46%","orderEachAmount":1092,"userOrderEachAmount":1307},{"blackOrderAmount":120780,"contactsOrderAmount":20990,"date":"2017-03-02","finishOrderCount":138,"finishOrderUserCount":119,"id":42,"mobileOrderAmount":0,"newUserCount":382,"orderAmount":141770,"orderChangeBit":"28.01%","orderEachAmount":1027,"userOrderEachAmount":1191},{"blackOrderAmount":107910,"contactsOrderAmount":38980,"date":"2017-03-01","finishOrderCount":130,"finishOrderUserCount":108,"id":41,"mobileOrderAmount":0,"newUserCount":319,"orderAmount":146890,"orderChangeBit":"28.21%","orderEachAmount":1130,"userOrderEachAmount":1360},{"blackOrderAmount":131670,"contactsOrderAmount":47031,"date":"2017-02-28","finishOrderCount":160,"finishOrderUserCount":133,"id":40,"mobileOrderAmount":0,"newUserCount":451,"orderAmount":178701,"orderChangeBit":"27.05%","orderEachAmount":1117,"userOrderEachAmount":1344},{"blackOrderAmount":36631,"contactsOrderAmount":1290,"date":"2017-02-27","finishOrderCount":39,"finishOrderUserCount":38,"id":39,"mobileOrderAmount":0,"newUserCount":100,"orderAmount":37921,"orderChangeBit":"31%","orderEachAmount":972,"userOrderEachAmount":998},{"blackOrderAmount":44550,"contactsOrderAmount":0,"date":"2017-02-26","finishOrderCount":45,"finishOrderUserCount":45,"id":38,"mobileOrderAmount":0,"newUserCount":85,"orderAmount":44550,"orderChangeBit":"47.06%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":41581,"contactsOrderAmount":0,"date":"2017-02-25","finishOrderCount":43,"finishOrderUserCount":40,"id":37,"mobileOrderAmount":0,"newUserCount":73,"orderAmount":41581,"orderChangeBit":"50.68%","orderEachAmount":967,"userOrderEachAmount":1040},{"blackOrderAmount":36644,"contactsOrderAmount":10,"date":"2017-02-24","finishOrderCount":61,"finishOrderUserCount":42,"id":36,"mobileOrderAmount":0,"newUserCount":77,"orderAmount":36654,"orderChangeBit":"37.66%","orderEachAmount":601,"userOrderEachAmount":873},{"blackOrderAmount":42570,"contactsOrderAmount":0,"date":"2017-02-23","finishOrderCount":43,"finishOrderUserCount":42,"id":35,"mobileOrderAmount":0,"newUserCount":79,"orderAmount":42570,"orderChangeBit":"45.57%","orderEachAmount":990,"userOrderEachAmount":1014},{"blackOrderAmount":49500,"contactsOrderAmount":0,"date":"2017-02-22","finishOrderCount":50,"finishOrderUserCount":49,"id":34,"mobileOrderAmount":0,"newUserCount":88,"orderAmount":49500,"orderChangeBit":"46.59%","orderEachAmount":990,"userOrderEachAmount":1010},{"blackOrderAmount":56430,"contactsOrderAmount":0,"date":"2017-02-21","finishOrderCount":57,"finishOrderUserCount":56,"id":33,"mobileOrderAmount":0,"newUserCount":112,"orderAmount":56430,"orderChangeBit":"46.43%","orderEachAmount":990,"userOrderEachAmount":1008},{"blackOrderAmount":66330,"contactsOrderAmount":0,"date":"2017-02-20","finishOrderCount":67,"finishOrderUserCount":66,"id":32,"mobileOrderAmount":0,"newUserCount":131,"orderAmount":66330,"orderChangeBit":"41.98%","orderEachAmount":990,"userOrderEachAmount":1005},{"blackOrderAmount":70290,"contactsOrderAmount":0,"date":"2017-02-19","finishOrderCount":71,"finishOrderUserCount":71,"id":31,"mobileOrderAmount":0,"newUserCount":133,"orderAmount":70290,"orderChangeBit":"48.87%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":95040,"contactsOrderAmount":0,"date":"2017-02-18","finishOrderCount":96,"finishOrderUserCount":95,"id":30,"mobileOrderAmount":0,"newUserCount":211,"orderAmount":95040,"orderChangeBit":"41.23%","orderEachAmount":990,"userOrderEachAmount":1000},{"blackOrderAmount":145530,"contactsOrderAmount":0,"date":"2017-02-17","finishOrderCount":147,"finishOrderUserCount":138,"id":29,"mobileOrderAmount":0,"newUserCount":238,"orderAmount":145530,"orderChangeBit":"55.04%","orderEachAmount":990,"userOrderEachAmount":1055},{"blackOrderAmount":131670,"contactsOrderAmount":0,"date":"2017-02-16","finishOrderCount":133,"finishOrderUserCount":129,"id":28,"mobileOrderAmount":0,"newUserCount":248,"orderAmount":131670,"orderChangeBit":"48.79%","orderEachAmount":990,"userOrderEachAmount":1021},{"blackOrderAmount":52470,"contactsOrderAmount":0,"date":"2017-02-15","finishOrderCount":53,"finishOrderUserCount":53,"id":27,"mobileOrderAmount":0,"newUserCount":103,"orderAmount":52470,"orderChangeBit":"46.6%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":12870,"contactsOrderAmount":0,"date":"2017-02-14","finishOrderCount":13,"finishOrderUserCount":12,"id":26,"mobileOrderAmount":0,"newUserCount":19,"orderAmount":12870,"orderChangeBit":"52.63%","orderEachAmount":990,"userOrderEachAmount":1073},{"blackOrderAmount":20790,"contactsOrderAmount":0,"date":"2017-02-13","finishOrderCount":21,"finishOrderUserCount":20,"id":25,"mobileOrderAmount":0,"newUserCount":35,"orderAmount":20790,"orderChangeBit":"54.29%","orderEachAmount":990,"userOrderEachAmount":1040},{"blackOrderAmount":23760,"contactsOrderAmount":0,"date":"2017-02-12","finishOrderCount":24,"finishOrderUserCount":21,"id":24,"mobileOrderAmount":0,"newUserCount":22,"orderAmount":23760,"orderChangeBit":"77.27%","orderEachAmount":990,"userOrderEachAmount":1131},{"blackOrderAmount":14850,"contactsOrderAmount":0,"date":"2017-02-11","finishOrderCount":15,"finishOrderUserCount":14,"id":23,"mobileOrderAmount":0,"newUserCount":20,"orderAmount":14850,"orderChangeBit":"35%","orderEachAmount":990,"userOrderEachAmount":1061},{"blackOrderAmount":14850,"contactsOrderAmount":0,"date":"2017-02-10","finishOrderCount":15,"finishOrderUserCount":14,"id":22,"mobileOrderAmount":0,"newUserCount":31,"orderAmount":14850,"orderChangeBit":"35.48%","orderEachAmount":990,"userOrderEachAmount":1061},{"blackOrderAmount":16830,"contactsOrderAmount":0,"date":"2017-02-09","finishOrderCount":17,"finishOrderUserCount":17,"id":21,"mobileOrderAmount":0,"newUserCount":39,"orderAmount":16830,"orderChangeBit":"35.9%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":28710,"contactsOrderAmount":0,"date":"2017-02-08","finishOrderCount":29,"finishOrderUserCount":29,"id":20,"mobileOrderAmount":0,"newUserCount":52,"orderAmount":28710,"orderChangeBit":"48.08%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":76230,"contactsOrderAmount":0,"date":"2017-02-07","finishOrderCount":77,"finishOrderUserCount":76,"id":19,"mobileOrderAmount":0,"newUserCount":138,"orderAmount":76230,"orderChangeBit":"50.72%","orderEachAmount":990,"userOrderEachAmount":1003},{"blackOrderAmount":97020,"contactsOrderAmount":0,"date":"2017-02-06","finishOrderCount":98,"finishOrderUserCount":98,"id":18,"mobileOrderAmount":0,"newUserCount":231,"orderAmount":97020,"orderChangeBit":"39.39%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":18810,"contactsOrderAmount":0,"date":"2017-02-05","finishOrderCount":19,"finishOrderUserCount":19,"id":17,"mobileOrderAmount":0,"newUserCount":58,"orderAmount":18810,"orderChangeBit":"31.03%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":55440,"contactsOrderAmount":0,"date":"2017-02-04","finishOrderCount":56,"finishOrderUserCount":53,"id":16,"mobileOrderAmount":0,"newUserCount":117,"orderAmount":55440,"orderChangeBit":"42.74%","orderEachAmount":990,"userOrderEachAmount":1046},{"blackOrderAmount":14850,"contactsOrderAmount":0,"date":"2017-02-03","finishOrderCount":15,"finishOrderUserCount":15,"id":15,"mobileOrderAmount":0,"newUserCount":24,"orderAmount":14850,"orderChangeBit":"45.83%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":19800,"contactsOrderAmount":0,"date":"2017-02-02","finishOrderCount":20,"finishOrderUserCount":20,"id":14,"mobileOrderAmount":0,"newUserCount":24,"orderAmount":19800,"orderChangeBit":"66.67%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":8910,"contactsOrderAmount":0,"date":"2017-02-01","finishOrderCount":9,"finishOrderUserCount":9,"id":13,"mobileOrderAmount":0,"newUserCount":18,"orderAmount":8910,"orderChangeBit":"33.33%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":4950,"contactsOrderAmount":0,"date":"2017-01-31","finishOrderCount":5,"finishOrderUserCount":5,"id":12,"mobileOrderAmount":0,"newUserCount":12,"orderAmount":4950,"orderChangeBit":"33.33%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":12870,"contactsOrderAmount":0,"date":"2017-01-30","finishOrderCount":13,"finishOrderUserCount":13,"id":11,"mobileOrderAmount":0,"newUserCount":24,"orderAmount":12870,"orderChangeBit":"50%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":8910,"contactsOrderAmount":0,"date":"2017-01-29","finishOrderCount":9,"finishOrderUserCount":9,"id":10,"mobileOrderAmount":0,"newUserCount":13,"orderAmount":8910,"orderChangeBit":"46.15%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":4950,"contactsOrderAmount":0,"date":"2017-01-28","finishOrderCount":5,"finishOrderUserCount":4,"id":9,"mobileOrderAmount":0,"newUserCount":10,"orderAmount":4950,"orderChangeBit":"20%","orderEachAmount":990,"userOrderEachAmount":1238},{"blackOrderAmount":11880,"contactsOrderAmount":0,"date":"2017-01-27","finishOrderCount":12,"finishOrderUserCount":12,"id":8,"mobileOrderAmount":0,"newUserCount":21,"orderAmount":11880,"orderChangeBit":"42.86%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":18810,"contactsOrderAmount":0,"date":"2017-01-26","finishOrderCount":19,"finishOrderUserCount":19,"id":7,"mobileOrderAmount":0,"newUserCount":47,"orderAmount":18810,"orderChangeBit":"27.66%","orderEachAmount":990,"userOrderEachAmount":990},{"blackOrderAmount":86130,"contactsOrderAmount":0,"date":"2017-01-25","finishOrderCount":87,"finishOrderUserCount":79,"id":6,"mobileOrderAmount":0,"newUserCount":197,"orderAmount":86130,"orderChangeBit":"35.53%","orderEachAmount":990,"userOrderEachAmount":1090},{"blackOrderAmount":116820,"contactsOrderAmount":0,"date":"2017-01-24","finishOrderCount":118,"finishOrderUserCount":116,"id":5,"mobileOrderAmount":0,"newUserCount":342,"orderAmount":116820,"orderChangeBit":"33.92%","orderEachAmount":990,"userOrderEachAmount":1007},{"blackOrderAmount":0,"contactsOrderAmount":0,"date":"2017-01-23","finishOrderCount":0,"finishOrderUserCount":0,"id":4,"mobileOrderAmount":0,"newUserCount":3,"orderAmount":0,"orderChangeBit":"0","orderEachAmount":0,"userOrderEachAmount":0},{"blackOrderAmount":1981,"contactsOrderAmount":0,"date":"2017-01-22","finishOrderCount":3,"finishOrderUserCount":2,"id":3,"mobileOrderAmount":0,"newUserCount":3,"orderAmount":1981,"orderChangeBit":"0","orderEachAmount":660,"userOrderEachAmount":991},{"blackOrderAmount":1022,"contactsOrderAmount":0,"date":"2017-01-21","finishOrderCount":33,"finishOrderUserCount":2,"id":2,"mobileOrderAmount":0,"newUserCount":0,"orderAmount":1022,"orderChangeBit":"0","orderEachAmount":31,"userOrderEachAmount":511},{"blackOrderAmount":31,"contactsOrderAmount":0,"date":"2017-01-20","finishOrderCount":31,"finishOrderUserCount":5,"id":1,"mobileOrderAmount":0,"newUserCount":4,"orderAmount":31,"orderChangeBit":"100%","orderEachAmount":1,"userOrderEachAmount":6}],"msg":"OK"})
        // return new Promise( (resolve, reject) => {

            // $.ajax({
            //     type:"post",
            //     url: convertRequestURL("user/statisticsList"),
            //     data:{},
            //     dataType:"json",
            //     success: (resp) => {
            //         let isError = errorCodeHandle(resp,reject)
            //         if(isError) return

            //         let data = resp.data
                    
            //     },
            //     error(){
            //         errorRequestHandle('获取历史统计失败！', reject)
            //     }
            // });
        // })
    },
    lengdingList(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("getLendingList_admin"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取贷款产品列表失败！', reject)
                }
            });
        })
    },
    downLengding(id){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("downLending_admin"),
                data:{
                    id:id
                },
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('下架贷款产品失败！', reject)
                }
            });
        })
    },
    upLengding(id){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("upLending_admin"),
                data:{
                    id:id
                },
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('上架贷款产品失败！', reject)
                }
            });
        })
    },
    appList(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("pageLendingConfig_admin"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取贷款应用列表失败！', reject)
                }
            });
        })
    },
    saveAppInfo(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("saveLendingConfig_admin"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('保存贷款应用失败！', reject)
                }
            });
        })
    },
    saveProductInfo(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("saveLending_admin"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp
                    resolve(data)
                },
                error(){
                    errorRequestHandle('保存产品失败！', reject)
                }
            });
        })
    },
    getProductInfo(id){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("lendingDetail_admin"),
                data:{
                    id:id
                },
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取产品失败！', reject)
                }
            });
        })
    },
    sortProduct(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("lendingSort_admin"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('产品排序失败！', reject)
                }
            });
        })
    },
    tagList(){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("lendTagList"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取标签列表失败！', reject)
                }
            });
        })
    },
    borrowCount(){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("backstage/findBorrowCountRecommend"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取借款推荐个数失败！', reject)
                }
            });
        })
    },
    lendCount(){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("backstage/findLendCountRecommend"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取出借推荐个数失败！', reject)
                }
            });
        })
    },
    setBorrowRecommend(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("backstage/setUserBorrowRecommend"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求设置借款推荐失败！', reject)
                }
            });
        })
    },
    setLendRecommend(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("backstage/setUserLendRecommend"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求设置出借推荐失败！', reject)
                }
            });
        })
    },
    delBorrowRecommend(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("backstage/delUserBorrowRecommend"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求取消借款推荐失败！', reject)
                }
            });
        })
    },
    delLendRecommend(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                url: convertRequestURL("backstage/delUserLendRecommend"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求取消出借推荐失败！', reject)
                }
            });
        })
    },
    publishMessage(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("backstage/publishMessage"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求发布消息失败！', reject)
                }
            });
        })
    },
    publishSms(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("backstage/publishSms"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求发布短信失败！', reject)
                }
            });
        })
    },
    freezeUser(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("backstage/freezeUser"),
                data:params,
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求冻结用户失败！', reject)
                }
            });
        })
    },
    showNotice(){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("backstage/showNotice"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求显示公告失败！', reject)
                }
            });
        })
    },
    publishNotice(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                data:params,
                url: convertRequestURL("backstage/publishNotice"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求发布公告失败！', reject)
                }
            });
        })
    },
    weixinQR(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                data:params,
                url: convertRequestURL("backstage/getChannelUrl"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求微信渠道失败！', reject)
                }
            });
        })
    },
    receipt(params){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"get",
                data:params,
                url: convertRequestURL("backstage/receipt"),
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求补借条列表失败！', reject)
                }
            });
        })
    },
    test(){
        return new Promise( (resolve, reject) => {
            $.ajax({
                type:"post",
                url: convertRequestURL("user/statisticsOriginData"),
                data:{},
                dataType:"json",
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp
                    resolve(data)
                },
                error(){
                    errorRequestHandle('获取历史统计失败！', reject)
                }
            });
        })
    },
}
const storageApi = {
    uploadBase64(params){
        return new Promise(function(resolve, reject){
            $.ajax({
                type:"post",
                url: convertRequestURL("uploadBase64"),
                dataType:"json",
                data:params,
                success: (resp) => {
                    let isError = errorCodeHandle(resp,reject)
                    if(isError) return

                    let data = resp.data.sourceList
                    resolve(data)
                },
                error(){
                    errorRequestHandle('请求上传接口失败',reject)
                }
            });
        })
    }
}

export {
    authApi,
    autoAllotApi,
    systemApi,
    icloudApi,
    repayApi,
    operateApi,
    loanApi,
    financeApi,
    allApi,
    loginApi,
    storageApi,
    dashBoardApi,
    financialApi,
    receiptApi,
    channelApi,
    channelRealtime,
    custApi
 }